package com.bdqn.crm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdqn.crm.mapper.SalChanceMapper;
import com.bdqn.crm.mybatis.ServiceImpl;
import com.bdqn.crm.pojo.SalChance;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class SalChanceServiceImpl extends ServiceImpl<SalChanceMapper, SalChance> implements SalChanceService {
    @Resource
    private SalChanceMapper salChanceMapper;
    @Override
    public IPage<SalChance> page(String custName, String chcDesc, Page page) {
        return super.getPage(page,new SalChance(custName,chcDesc));
    }

    @Override
    public SalChance selectId(Long chcId) {
        return salChanceMapper.selectId(chcId);
    }
}
